<?php

namespace Futures\Controller;
use Think\Controller;

class ArticleController extends Controller {
	public function article(){
		$id=I('get.id');
		//文章资讯
		$document = M('document');
		$where = array("id" => $id,"status" => 1);
		$list = $document->where($where)->find();
		$this->assign('list',$list);
		//文章资讯内容
		$document_article = M('document_article');
		$data = $document_article->where("id=".$id)->find();
		$this->assign('data',$data);
		$this->display();
	}
}